package com.yfqy.admin.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.yfqy.admin.domain.mapper.ProductViewHistoryMapper;
import com.yfqy.admin.domain.entity.ProductViewHistory;
import com.yfqy.admin.service.ProductViewHistoryService;

@Service
public class ProductViewHistoryServiceImpl implements ProductViewHistoryService {

    @Resource
    private ProductViewHistoryMapper productViewHistoryMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return productViewHistoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProductViewHistory record) {
        return productViewHistoryMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductViewHistory record) {
        return productViewHistoryMapper.insertSelective(record);
    }

    @Override
    public ProductViewHistory selectByPrimaryKey(Long id) {
        return productViewHistoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductViewHistory record) {
        return productViewHistoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductViewHistory record) {
        return productViewHistoryMapper.updateByPrimaryKey(record);
    }

}
